import { defineStore } from "pinia";

export const useConfigStore = defineStore('app-config-store', {
    state: () => ({
        apikey: 'apikey', // openai apikey 从openai获取
        review: false, // 是否预览
        device: true // 使用音频文件输入
    }),
    persist: {
        enabled: true,
        strategies: [{
            key: 'app-config-store',
            storage: localStorage
        }]
    }
})